package com.tedu.bill.homework;

/**
 * Author：毕龙
 * Date: 2024/3/26 20:34
 */
public class TestQuestion16 {
    public static void main(String[] args) {
        /**
         * 0 1 1 2 3  5  8  13 ......
         */
        int first = 0;
        int second = 0;
        int temp = 0;
        for (int i = 1; i <= 10; i ++){
            if(i == 1){
                first = 0;
                System.out.print(first +"  ");
            }else if(i == 2){
                second = 1;
                System.out.print(second+"  ");
            }else{
                temp = first + second;
                System.out.print(temp+"  ");
                first = second;
                second = temp;
            }
        }
    }
}
